import request from "@/utils/request";

// 政策资讯
export function queryNews (data) {
  return request({
    url: '/mbacms/advisory/list',
    method: "get",
    params: data
  })
}
export function addNews (query) {
  return request({
    url: '/mbacms/advisory',
    method: "post",
    data: query
  })
}
export function updateNews (query) {
  return request({
    url: '/mbacms/advisory',
    method: "put",
    data: query
  })
}
export function delNews (ids) {
  return request({
    url: `/mbacms/advisory/${ids}`,
    method: "delete"
  })
}

// 战略合作
export function queryFriends (data) {
  return request({
    url: '/mbacms/partner/list',
    method: 'get',
    params: data
  })
}
export function addFriends (query) {
  return request({
    url: '/mbacms/partner',
    method: "post",
    data: query
  })
}
export function updateFriends (query) {
  return request({
    url: '/mbacms/partner',
    method: "put",
    data: query
  })
}
export function delFriends (ids) {
  return request({
    url: `/mbacms/partner/${ids}`,
    method: "delete"
  })
}

// 优秀作品征集
export function queryGoodwork (data) {
  return request({
    url: '/mbacms/content/list',
    method: 'get',
    params: data
  })
}
export function delGoodwork (ids) {
  return request({
    url: `/mbacms/content/${ids}`,
    method: "delete"
  })
}

// 优秀老师征集
export function queryGoodteacher (data) {
  return request({
    url: '/mbacms/teachers/list',
    method: 'get',
    params: data
  })
}
export function delGoodteacher (ids) {
  return request({
    url: `/mbacms/teachers/${ids}`,
    method: "delete"
  })
}


export function region () {
  return request({
    url: `/region/list/1`,
    method: "get"
  })
}
// 通过type获取
export function gettypelist () {
  return request({
    url: `/mbacms/introduce/list`,
    method: "get"
  })
}
// export function gettealist () {
//   return request({
//     url: `/teacher/consult/list`,
//     method: "get"
//   })
// }

